<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>应用开发-应用-模块</title>
		<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/meta.jsp"%>
		
	</head>
	<body class="content"><wfnm:webflow name="metaModule"/>
		<form name="moduleForm" action="metaModuleController.wit?app_id=${app_id}" method="post">
			<div class="page-navigate">
     			<img src="${contextPath}/webresource/images/meta/module.jpg">
				<span>
					应用开发-<a href="metaAppController.wit">
					应用</a>-<a href="metaModuleController.wit?app_id=${app_id}">
					模块</a>
				</span>
      		</div>
    		<div align=right class="fix-operation">
 				<wit:fullSearchBar form="moduleForm"/>
	 			<a href="#" onclick="query(document.moduleForm,'metaModuleController.wit?app_id=${app_id}')">
	 				<img src="${contextPath}/webresource/images/operation/search.gif">
 				</a>
    		</div>	
			<div id="optbar" class="operation">				 
	  					<a href="javascript:create(document.moduleForm,'metaModuleController!edit.wit?app_id=${app_id}')"  accesskey="a">
	  					<img  src="${contextPath}/webresource/images/ico_btn_add.gif">
	  					新增(A)</a>
	  					<a href="javascript:edit(document.moduleForm,'','metaModuleController!edit.wit?app_id=${app_id}')" accesskey="e">
	  					<img src="${contextPath}/webresource/images/ico_btn_edit.gif">
	  					编辑(E)</a>
	  					<a href="javascript:batch_del(document.moduleForm,'','metaModuleController!delete.wit?app_id=${app_id}')" accesskey="r">
	  					<img src="${contextPath}/webresource/images/ico_btn_del.gif">
	  					删除(R)</a>
      		</div>
			
			<ec:table items="moduleList" var="module" tableId="module"	action="metaModuleController.wit?app_id=${app_id}"
				 ajax="true"	state="persist"	form="moduleForm" >
				<ec:row>
					<ec:column property="ROWCOUNT" title=" " sortable="false" width="3%" viewsAllowed="html">
						${ROWCOUNT}
					</ec:column>
					<ec:column property="checkbox" title=" " sortable="false" width="5%" viewsAllowed="html">
						<input type="checkbox" name="itemlist" value="${module.id}" style="border: 0px" />
					</ec:column>

					<ec:column property="name" alias="name" title="名称" />

					<ec:column property="description" alias="description" title="说明" />

					<ec:column property="createdby" alias="createdby" title="创建人" />		

					<ec:column property="modified" alias="modified" title="更新时间" />

					<ec:column property="nofieldName" title="action" width="5%" sortable="false">
						<a href="metaModuleController!edit.wit?itemlist=${module.id}&app_id=${app_id}">
							<img border=0 src="${contextPath}/webresource/images/operation/edit.gif">
						</a>
						<a href="metaModuleController!delete.wit?itemlist=${module.id}&app_id=${app_id}">
							<img border=0 src="${contextPath}/webresource/images/operation/del.gif">
						</a>
					</ec:column>
				</ec:row>
			</ec:table>		
			
		</form>
	</body>
	<script>window.parent.frames.menu.selectTree("app_${app_id}");</script>
</html>